package dao;

import java.util.ArrayList;

/**
 * packageName com.mt.bms.dao
 *
 * @author Administrator
 * @version 1.0
 * @className UserDao (此处以class为例)
 * @date 2024/8/2
 * @description
 */
public interface UserDao<E> {
    int insert(E e);

    ArrayList<E> selectByUsernameAndPassword(String username, String password);

    int deleteById(int id);

    int updatePasswordById(int id, String password);

    ArrayList<E> selectAll();

    ArrayList<E> selectById(int id);

    ArrayList<E> selectByUserName(String userName);



    int updateAddBalanceById(int id, double money);

    int updateBalanceByMyIdAndToId(int myId, int toId, double money);

    int updateSubBalanceById(int id, double money);
}